package cz.boxdesign.library.entity;

import java.sql.Date;

public class User implements LibraryEntity {

	/**
	 * Properties
	 */
	private Integer id;
	private String jmeno;
	private String prijmeni;
	private String login;
	private String password;
	private Address adress;
	private boolean isAdmin;
	private Date zamestanOd;
	private Date zamestanDo;
	private String rodneCislo;
	private Double plat;
	private Date datumRegistrace;
	private Date obdobiOd;
	private Date obdobiDo;

	public String getLabel() {
		return prijmeni+" "+jmeno;
	}

	public User() {
		super();
	}

	public User(Integer id, String jmeno, String prijmeni, String login, String password, Address adress, boolean isAdmin) {
		super();
		this.id = id;
		this.jmeno = jmeno;
		this.prijmeni = prijmeni;
		this.login = login;
		this.password = password;
		this.adress = adress;
		this.isAdmin = isAdmin;
	}

	/**
	 * @return the id
	 */
	public Integer getId() {
		return id;
	}

	/**
	 * @param id
	 *            the id to set
	 */
	public void setId(Integer id) {
		this.id = id;
	}

	/**
	 * @return the jmeno
	 */
	public String getJmeno() {
		return jmeno;
	}

	/**
	 * @param jmeno
	 *            the jmeno to set
	 */
	public void setJmeno(String jmeno) {
		this.jmeno = jmeno;
	}

	/**
	 * @return the prijmeni
	 */
	public String getPrijmeni() {
		return prijmeni;
	}

	/**
	 * @param prijmeni
	 *            the prijmeni to set
	 */
	public void setPrijmeni(String prijmeni) {
		this.prijmeni = prijmeni;
	}

	/**
	 * @return the login
	 */
	public String getLogin() {
		return login;
	}

	/**
	 * @param login
	 *            the login to set
	 */
	public void setLogin(String login) {
		this.login = login;
	}

	/**
	 * @return the password
	 */
	public String getPassword() {
		return password;
	}

	/**
	 * @param password
	 *            the password to set
	 */
	public void setPassword(String password) {
		this.password = password;
	}

	/**
	 * @return the adress
	 */
	public Address getAdress() {
		return adress;
	}

	/**
	 * @param adress
	 *            the adress to set
	 */
	public void setAdress(Address adress) {
		this.adress = adress;
	}

	/**
	 * @return the isAdmin
	 */
	public boolean isAdmin() {
		return isAdmin;
	}

	/**
	 * @param isAdmin
	 *            the isAdmin to set
	 */
	public void setAdmin(boolean isAdmin) {
		this.isAdmin = isAdmin;
	}

	/**
	 * @return the zamestanOd
	 */
	public Date getZamestanOd() {
		return zamestanOd;
	}

	/**
	 * @return the zamestanDo
	 */
	public Date getZamestanDo() {
		return zamestanDo;
	}

	/**
	 * @return the rodneCislo
	 */
	public String getRodneCislo() {
		return rodneCislo;
	}

	/**
	 * @return the plat
	 */
	public Double getPlat() {
		return plat;
	}

	/**
	 * @return the datumRegistrace
	 */
	public Date getDatumRegistrace() {
		return datumRegistrace;
	}

	/**
	 * @return the obdobiOd
	 */
	public Date getObdobiOd() {
		return obdobiOd;
	}

	/**
	 * @return the obdobiDo
	 */
	public Date getObdobiDo() {
		return obdobiDo;
	}

	/**
	 * @param zamestanOd
	 *            the zamestanOd to set
	 */
	public void setZamestanOd(Date zamestanOd) {
		this.zamestanOd = zamestanOd;
	}

	/**
	 * @param zamestanDo
	 *            the zamestanDo to set
	 */
	public void setZamestanDo(Date zamestanDo) {
		this.zamestanDo = zamestanDo;
	}

	/**
	 * @param rodneCislo
	 *            the rodneCislo to set
	 */
	public void setRodneCislo(String rodneCislo) {
		this.rodneCislo = rodneCislo;
	}

	/**
	 * @param plat
	 *            the plat to set
	 */
	public void setPlat(Double plat) {
		this.plat = plat;
	}

	/**
	 * @param datumRegistrace
	 *            the datumRegistrace to set
	 */
	public void setDatumRegistrace(Date datumRegistrace) {
		this.datumRegistrace = datumRegistrace;
	}

	/**
	 * @param obdobiOd
	 *            the obdobiOd to set
	 */
	public void setObdobiOd(Date obdobiOd) {
		this.obdobiOd = obdobiOd;
	}

	/**
	 * @param obdobiDo
	 *            the obdobiDo to set
	 */
	public void setObdobiDo(Date obdobiDo) {
		this.obdobiDo = obdobiDo;
	}
}
